<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class estandarController extends CI_Controller {

    //constructor de la clase
    function __construct(){
        parent::__construct();
        $this->load->database();
    }
        
    public function index(){
        $this->set_session('mensaje', NULL);  
        $data['head'] = 'pages/head';
        $data['header'] = 'pages/header';
        $data['menuLateral'] = 'pages/menuLateral';
        $data['contenido'] = 'estandar_contents/estandarContent';
        $this->load->view('plantilla',$data);
    }
    //funciones para acceder y modificar las variables de session
    public function set_session($var,$cont=NULL){
        $this->session->set_userdata($var, $cont);
    }
    public function get_session(){
        return $this->session->all_userdata();
    }
    
    
}
